<template>
  <view class="box">
    <uni-load-more status="loading" />
  </view>
    <!-- #ifdef H5 -->
    <!-- <web-view :src="actions" /> -->
    <!-- #endif -->
    <!-- #ifdef MP-WEIXIN -->
    <text>{{actions}}</text>
    <!-- #endif -->
</template>

<script setup  lang="ts">
import {http} from '@/utlis/http.ts'
    
import {ref} from 'vue'
import {useMemberStore} from "@/stores/modules/member.ts"
const querys=defineProps<{
      serial:String
}>()
const actions=ref('')
uni.request({
    url: 'alipayfrom/',
    data: {
      serial:querys.serial
    },
    header: {
      Accept: 'application/json',
      'Content-Type': 'application/json',
      'X-Requested-With': 'XMLHttpRequest'
    },
    method: 'POST',
    sslVerify: true,
    success: ({ data, statusCode, header }) => {
      
        console.log('datapay',data)
	  actions.value=data.alipay_url+'?'+data.order_string
	  console.log(actions.value)
    // #ifdef H5
    location.href=actions.value
    // #endif
    },
    fail: (error) => {}
  })


// const memberStore = useMemberStore()    
// console.log('urlss',memberStore.alipay.url)
// const query = defineProps<{
//       urls:string,
//       orderid:string
// }>()
// console.log('orrr',query.orderid)
// const url=ref(‘)
// console.log('url',url.value)
</script>

<style lang="scss">
.box{
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>